import request from '@/utils/request';

let baseURL = '/invest-portal/v1/api';

// 住宅项目列表
export const residenceProjectListApi = params => {
	return request({
		url: `${baseURL}/unit/house/queryProjectUnitHouseList`,
		method: 'post',
		data: params,
	});
};

// 住宅-数据同步-项目列表
export const residenceDataSyncProjectListApi = params => {
	return request({
		url: `${baseURL}/unit/house/property/queryProjectUnitHousePropertyList`,
		method: 'post',
		data: params,
	});
};

// 住宅-房间明细列表
export const residenceRoomListApi = params => {
	return request({
		url: `${baseURL}/unit/house/queryUnitHouseList`,
		method: 'post',
		data: params,
	});
};

// 住宅-房间明细列表-详情
export const residenceRoomInfoListApi = params => {
	return request({
		url: `${baseURL}/unit/house/findUnitHouseView`,
		method: 'post',
		data: params,
	});
};

// 住宅-数据同步列表
export const residenceDataSyncListApi = params => {
	return request({
		url: `${baseURL}/unit/house/property/queryUnitHousePropertyList`,
		method: 'post',
		data: params,
	});
};

// 住宅-数据同步列表-校验(单个)
export const residenceDataSyncVerifyApi = params => {
	return request({
		url: `${baseURL}/unit/house/property/unitHousePropertyCheck`,
		method: 'post',
		data: params,
	});
};

// 住宅-数据同步列表-立即校验（批量）
export const residenceDataSyncAllVerifyApi = params => {
	return request({
		url: `${baseURL}/unit/house/property/unitHousePropertyChecks`,
		method: 'post',
		data: params,
	});
};

// 人员同步列表
export const getStaffListApi = params => {
	return request({
		url: `/property-portal/v1/api/jz/queryJzPropertyList`,
		method: 'post',
		data: params,
	});
};

// 人员同步列表 - 项目
export const getProjectListApi = params => {
	return request({
		url: `/property-portal/v1/api/jz/queryPropertyProjectList`,
		method: 'post',
		data: params,
	});
};

// 人员同步 - 同步数据
export const staffSyncData = params => {
	return request({
		url: `/property-portal/v1/api/jz/syncJzPropertyManager`,
		method: 'post',
		data: params,
	});
};

// 人员同步-物业数据列表
export const getStaffPropertyListApi = params => {
	return request({
		url: `property-portal/v1/api/jz/queryJzPropertyManagerList`,
		method: 'post',
		data: params,
	});
};

// 楼栋列表
export const getBuildingListApi = params => {
	return request({
		url: `${baseURL}/building/list`,
		method: 'post',
		data: params,
	});
};

// 楼层列表
export const getFloorListApi = params => {
	return request({
		url: `${baseURL}/unit/house/queryUnitHouseFloorNumList`,
		method: 'post',
		data: params,
	});
};